package com.util;

public class CategoryMapping {
	 
	public static String [][] type1=new String[][]{
		{"Women","female"},{"Women","women"},{"Men","men"},{"Men","male"},
		{"Kids&baby","kids"},{"Kids&baby","baby"},{"Kids&baby","boy"},
		{"Kids&baby","boys"},{"Kids&baby","girls"},{"Kids&baby","girl"},
		{"Home","home"},
		{"Jewelry&watches","jewelry"},{"Jewelry&watches","watches"},
		{"Beauty&health","beauty"},{"Beauty&health","health"}
		
	};
	
	
     public static String[][] type2=new String [][]{
    	 {"Shoes","shoes"},{"Accessories","Accessories"},
    	 {"Dresses","dresses"},{"Skirts","skirts"},
    	 {"Pants","pants"},
    	 {"Outerwear","outerwear"},{"Intimates","intimates"},
    	 {"Loungewear","loungewear"},
    	 {"Clothing","apparel"},
    	 {"Suits","suits"},{"Coats","coats"},
    	 {"Shirts","shirts"},{"Sweaters","sweaters"},
    	 {"Polos","polos"},{"Tees","tees"},
    	 {"Pants","pants"},{"Shorts","shorts"},
    	 {"Underwear","underwear"},{"Sleepwear","sleepwear"},
    	 {"Toys,Games&Books","toys"},{"Toys,Games&Books","games"},
     };
    	
   public static String getType1(String arg)
   {
	   String args=arg.toLowerCase();
	   for(int i=0;i<type1.length;i++)
	   {
		  if(args.contains(type1[i][1]))
		  {
			  return type1[i][0];			  
		  }
	   }
	   return "";
   }
   
   public static String getType2(String arg)
   {
	   String args=arg.toLowerCase();
	   for(int i=0;i<type2.length;i++)
	   {
		  if(args.contains(type2[i][1]))
		  {
			  return type2[i][0];			  
		  }
	   }
	   return "";
   }
   
   
   public static void main(String args[])
   {

	   System.out.println(getType1("Women"));

   }
}
